package com.isoft.filelistener.dao;

import com.isoft.filelistener.entity.Meta;
import com.isoft.filelistener.entity.OnreDflt;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DfmeOnreDao {
    @Insert("insert into TEAM_03.DFME_ONRE(SNDR,RCVR,SEQN,DDTM,TYPE,STYP,FLID,FFID,FIDE,FATT,STAT,ISTA,MSTA,MIST,PAST,ELDT) " +
            "values(#{meta.sndr},#{meta.rcvr},#{meta.seqn},#{meta.ddtm},#{meta.type},#{meta.styp}," +
            "#{dflt.flid},#{dflt.ffid},#{dflt.fide},#{dflt.fatt},#{dflt.stat},#{dflt.ista},#{dflt.msta},#{dflt.mist},#{dflt.past},#{dflt.eldt})")
    public int insertonre(@Param("meta") Meta meta, @Param("dflt") OnreDflt dflt);
}
